<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>success!</h1>
<div class="box" th:text="${key}">old value</div>
<div class="box" th:utext="${key}">old value</div>
<hr>
<!--遍历list-->
<div th:text="${user}" th:each="user:${list}"></div>
<div th:each="user:${list}">
    <span th:text="${user}"></span>
</div>
<div>
    <span th:each="user:${list}" th:text="${user}"></span>
    <span th:each="user:${list}">[[${user}]]</span>
</div>
<hr>

<ul th:each="element:${list}">
    <li th:text="${element}"></li>
</ul>
</body>
</html>